package org.pine.dictionary.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * id 请求体
 * </p>
 *
 * @author pine
 * @since 2024-05-16
 */
@Schema(title = "ID请求体")
@Data
public class IdRequest<T> implements Serializable {
    @Serial
    private static final long serialVersionUID = -2436870500386453113L;

    /**
     * ID
     */
    @NotNull(message = "请求ID不能为空")
    @Schema(title = "id", description = "请求ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private T id;
}
